package com.yanqu.road.entity.activity.jiuzhou.game;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CrossJiuZhouGameData {

    /**
     * 战斗用户数据
     */
    private Map<Long, CrossJiuZhouGameUserData> gameUserDataMap = new ConcurrentHashMap<>();

    /**
     * 战斗轮次
     * 第x战   准备期是0，
     */
    private int gameRound;

    /**
     * 战斗状态 1、战前准备期   2、选锦囊   3、战斗中  4、战斗结束
     */
    private int stageType;

    /**
     * 下一个阶段的时间
     */
    private long nextStageTime;

    /**
     * 战斗数据
     */
    private List<CrossJiuZhouGameBattleData> battleDataList = new ArrayList<>();

    public int getGameRound() {
        return gameRound;
    }

    public void setGameRound(int gameRound) {
        this.gameRound = gameRound;
    }

    public int getStageType() {
        return stageType;
    }

    public void setStageType(int stageType) {
        this.stageType = stageType;
    }

    public long getNextStageTime() {
        return nextStageTime;
    }

    public void setNextStageTime(long nextStageTime) {
        this.nextStageTime = nextStageTime;
    }

    public List<CrossJiuZhouGameBattleData> getBattleDataList() {
        return battleDataList;
    }

    public void setBattleDataList(List<CrossJiuZhouGameBattleData> battleDataList) {
        this.battleDataList = battleDataList;
    }

    public Map<Long, CrossJiuZhouGameUserData> getGameUserDataMap() {
        return gameUserDataMap;
    }

    /**
     * 获取房间的用户数据
     */
    public CrossJiuZhouGameUserData getGameUserData(long userId) {
        return gameUserDataMap.get(userId);
    }

    public void setGameUserDataMap(Map<Long, CrossJiuZhouGameUserData> gameUserDataMap) {
        this.gameUserDataMap = gameUserDataMap;
    }
}
